package com.zm.zmgz.dao;

import com.zm.zmgz.pojo.SalarySettlementBean;
import com.zm.zmgz.pojo.SalarySettlementDetailsBean;
import com.zm.zmgz.pojo.SalarySettlementDetailsBeanExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SalarySettlementDetailsBeanMapper {
    int countByExample(SalarySettlementDetailsBeanExample example);

    int deleteByExample(SalarySettlementDetailsBeanExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(SalarySettlementDetailsBean record);

    int insertSelective(SalarySettlementDetailsBean record);

    List<SalarySettlementDetailsBean> selectByExample(SalarySettlementDetailsBeanExample example);

    SalarySettlementDetailsBean selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SalarySettlementDetailsBean record, @Param("example") SalarySettlementDetailsBeanExample example);

    int updateByExample(@Param("record") SalarySettlementDetailsBean record, @Param("example") SalarySettlementDetailsBeanExample example);

    int updateByPrimaryKeySelective(SalarySettlementDetailsBean record);

    int updateByPrimaryKey(SalarySettlementDetailsBean record);
	
	int addBatch(SalarySettlementBean salarySettlementBean); // 返回的是新增的行数并新增记录的主键值

    int getMaxBatchIdByBatch(@Param("batch") Integer batch); // 获取当前批次最大的批次内id
}